<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<table bgcolor="1" align="center" width="80%">

    <tr align="center">
        <td>编号</td>
        <td>名称</td>
        <td>操作</td>
    </tr>
    <tr align="center" th:each="d:${list}">
        <td th:text="${d.depId}"></td>
        <td th:text="${d.depName}"></td>
        <td>
            <button th:onclick="'del('+${d.depId}+')'">删除</button>
        </td>
    </tr>



</table>

</body>
</html>

<script>

    function del(id) {
        alert(id);
    }
</script>
